class User {
  final int id;
  final String openId;
  final String displayName;
  final String avatarUrl;
  final String createdAt;
  final String updatedAt;

  User({
    this.id,
    this.openId,
    this.displayName,
    this.avatarUrl,
    this.createdAt,
    this.updatedAt,
  });

  factory User.fromJson(Map<String, dynamic> json) {
    return new User(
        id: json['id'],
        openId: json['openId'],
        displayName: json['displayName'],
        avatarUrl: json['avatarUrl'],
        createdAt: json['createdAt'],
        updatedAt: json['updatedAt']);
  }
}
